package Pojo;

import java.util.Objects;

//房间号表实体类
public class RoomNumber {
    private Integer room_number_id;
    private String room_number_text;
    private Integer room_id;
    private Integer room_status_id;


    private Room room;
    private RoomStatus roomStatus;

    public RoomNumber() {
    }

    @Override
    public String toString() {
        return "RoomNumber{" +
                "room_number_id=" + room_number_id +
                ", room_number_text='" + room_number_text + '\'' +
                ", room_id=" + room_id +
                ", room_status_id=" + room_status_id +
                ", room=" + room +
                ", roomStatus=" + roomStatus +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        RoomNumber that = (RoomNumber) o;
        return Objects.equals(room_number_id, that.room_number_id) &&
                Objects.equals(room_number_text, that.room_number_text) &&
                Objects.equals(room_id, that.room_id) &&
                Objects.equals(room_status_id, that.room_status_id) &&
                Objects.equals(room, that.room) &&
                Objects.equals(roomStatus, that.roomStatus);
    }

    @Override
    public int hashCode() {
        return Objects.hash(room_number_id, room_number_text, room_id, room_status_id, room, roomStatus);
    }

    public Integer getRoom_number_id() {
        return room_number_id;
    }

    public void setRoom_number_id(Integer room_number_id) {
        this.room_number_id = room_number_id;
    }

    public String getRoom_number_text() {
        return room_number_text;
    }

    public void setRoom_number_text(String room_number_text) {
        this.room_number_text = room_number_text;
    }

    public Integer getRoom_id() {
        return room_id;
    }

    public void setRoom_id(Integer room_id) {
        this.room_id = room_id;
    }

    public Integer getRoom_status_id() {
        return room_status_id;
    }

    public void setRoom_status_id(Integer room_status_id) {
        this.room_status_id = room_status_id;
    }

    public Room getRoom() {
        return room;
    }

    public void setRoom(Room room) {
        this.room = room;
    }

    public RoomStatus getRoomStatus() {
        return roomStatus;
    }

    public void setRoomStatus(RoomStatus roomStatus) {
        this.roomStatus = roomStatus;
    }

    public RoomNumber(Integer room_number_id, String room_number_text, Integer room_id, Integer room_status_id, Room room, RoomStatus roomStatus) {
        this.room_number_id = room_number_id;
        this.room_number_text = room_number_text;
        this.room_id = room_id;
        this.room_status_id = room_status_id;
        this.room = room;
        this.roomStatus = roomStatus;
    }
}
